package Mangos::DB::Mangos::SkillDiscoveryTemplate;

use strict;

use base qw(Mangos::DB::Mangos);

__PACKAGE__->meta->setup
(
    table   => 'skill_discovery_template',

    columns => 
    [
        spellId       => { type => 'integer', not_null => 1 },
        reqSpell      => { type => 'integer', not_null => 1 },
        reqSkillValue => { type => 'integer', default => '0', not_null => 1 },
        chance        => { type => 'float', default => '0', not_null => 1, precision => 32 },
    ],

    primary_key_columns => [ 'spellId', 'reqSpell' ],
);

1;

package Mangos::DB::Mangos::SkillDiscoveryTemplate::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Mangos::SkillDiscoveryTemplate' }

__PACKAGE__->make_manager_methods('skill_discovery_template');

1;
